import { Suspense, lazy } from "react";
import { Skeleton } from "./skeleton";
import Card from "../Card";
// 修复：将异步组件的导入路径改为相对路径，避免找不到模块错误
const AsyncComponent = lazy(() => import("./test"));
const Comp3: React.FC = () => {
  return (
    <>
      <Suspense fallback={<div>loading...</div>}>
         <AsyncComponent />
      </Suspense>
      <Suspense fallback={<Skeleton />}>
        <Card />
      </Suspense>
    </>
  );
};

export default Comp3;
